/*
 * @Author       : Bing Chen chenbing@iocharger.com
 * @Date         : 2024-05-20 15:26:46
 * @LastEditors  : Bing Chen chenbing@iocharger.com
 * @LastEditTime : 2025-03-15 12:56:25
 * @FilePath     : \openchaoji-corelib\shared\include\OpenChaoJi_error_code.h
 * @Description  : 本文件定义通用错误码
 *
 * Copyright (c) 2025 OpenChaoJi
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the icense for the specific language governing permissions and
 * limitations under the License.
 *
 */

#ifndef __OPENCHAOJI_ERROR_CODE_H__
#define __OPENCHAOJI_ERROR_CODE_H__

#include "OpenChaoJi_config.h"

/*
 *  考虑可能的unsigned问题, 本系统定义所有错误码为unsigned
*/
#define OPENCHAOJI_ERRCODE_OK           0
#define OPENCHAOJI_ERRCODE_FAIL         1
#define OPENCHAOJI_ERRCODE_OUT_MEMORY   2
#define OPENCHAOJI_ERRCODE_TIMEOUT      3
#define OPENCHAOJI_ERRCODE_UNKNOWN      4


#endif

